import 'package:flutter/material.dart';
import 'package:flutter_spinkit/flutter_spinkit.dart';
class VideoLoadingPlaceholder extends StatelessWidget {
  const VideoLoadingPlaceholder({
    Key? key,
    required this.tag,
    required this.color,
  }) : super(key: key);

  final String tag;
  final Color color;
  @override
  Widget build(BuildContext context) {
    return Container(
      decoration: BoxDecoration(
        gradient: LinearGradient(
          begin: Alignment.topCenter,
          colors: <Color>[
            Colors.blue,
            Colors.green,
          ],
        ),
      ),
      child: Column(
        mainAxisAlignment: MainAxisAlignment.center,
        children: <Widget>[
          SpinKitWave(
            size: 36,
            color: Colors.white.withOpacity(0.3),
          ),
          Container(
            padding: EdgeInsets.all(50),
            child: Text(
              tag,
              style: TextStyle(
                color: color,
              ),
            ),
          ),
        ],
      ),
    );
  }
}
